package com.joseph;

import java.util.HashMap;

public class ArthasTest {

    //ognl
    static HashMap<String, String> data = new HashMap<String, String>() {
        {
            put("a", "aa");
            put("b", "bb");
            put("c", "cc");
        }
    };

    private String field = "filed";

    public Param say(Param p) {
        p.setId(p.getId() + 1);
        return p;
    }

    public static void main(String[] args) throws InterruptedException {
        int i = 1 + 1;
        System.out.println(i);
        while (true) {
            Thread.sleep(3000);
            new ArthasTest().say(new Param(1, "JOSEPH"));
        }
    }
}

class Param {
    private int id;
    private String name;

    public Param(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
